package LocatorsOnPages;


import Tests.TestConditions;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.PageFactory;

public class BasketPage extends TestConditions{



    /*---------------constructor---------------------------------------------------------------*/
    public BasketPage (WebDriver driver)
    {
        this.driver = driver;

    }

  /*---------------locators---------------------------------------------------------------*/

    private By BuyButton = By.name("topurchases");
    private By MakeOrder = By.className("bg-r");

   /*---------------end locators---------------------------------------------------------------*/


    /*---------------Actions---------------------------------------------------------------*/

    public void clickBuyButton(){

        driver.findElement(BuyButton).click();

    }


    public void clickMakeOrder(){

        driver.findElement(MakeOrder).click();

    }

     /*---------------End Actions---------------------------------------------------------------*/

}
